package com.kit.data.kitopeso.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;


import com.kit.data.kitopeso.base.BaseBindingAdapter;
import com.kit.data.kitopeso.databinding.KitoValueItemBinding;
import com.kit.data.kitopeso.obj.KitoValueInfo;

import java.util.List;

public class ValueAdapter extends BaseBindingAdapter<KitoValueItemBinding, KitoValueInfo> {


    public ValueAdapter(Context context, List<KitoValueInfo> dataList) {
        super(context, dataList);
    }


    @Override
    protected KitoValueItemBinding initViewBinding(LayoutInflater inflater, ViewGroup parent) {
        return KitoValueItemBinding.inflate(inflater);
    }

    @Override
    protected void bindData(KitoValueItemBinding binding, KitoValueInfo item, int position) {
        binding.tvTitle.setText(item.getTitle());
    }


}